package com.yunji.framework_template.biz.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunji.framework_template.common.web.Page;
import com.yunji.framework_template.orm.persistence.mapper.SitesTypeTopMapper;
import com.yunji.framework_template.orm.persistence.model.SitesTypeTop;

/**
 * Created by fenglibin on 2018/11/15.
 */
@Service
public class SitesTypeTopService {

    @Autowired
    private SitesTypeTopMapper sitesTypeTopMapper;

    public int deleteByPrimaryKey(@Param("typeId") Integer typeId, @Param("siteId") Integer siteId) {
        return sitesTypeTopMapper.deleteByPrimaryKey(typeId, siteId);
    }

    public int insert(SitesTypeTop record) {
        return sitesTypeTopMapper.insert(record);
    }

    public int insertSelective(SitesTypeTop record) {
        return sitesTypeTopMapper.insertSelective(record);
    }

    public SitesTypeTop selectByPrimaryKey(@Param("typeId") Integer typeId, @Param("siteId") Integer siteId) {
        return sitesTypeTopMapper.selectByPrimaryKey(typeId, siteId);
    }

    public int updateByPrimaryKeySelective(SitesTypeTop record) {
        return sitesTypeTopMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(SitesTypeTop record) {
        return sitesTypeTopMapper.updateByPrimaryKey(record);
    }

    public List<SitesTypeTop> selectByCondition(SitesTypeTop record) {
        return sitesTypeTopMapper.selectByCondition(record);
    }

    public List<SitesTypeTop> selectAll() {
        return sitesTypeTopMapper.selectAll();
    }

    public List<SitesTypeTop> selectByPage(Page<SitesTypeTop> page) {
        return sitesTypeTopMapper.selectByPage(page);
    }

    public Integer count(SitesTypeTop record) {
        return sitesTypeTopMapper.count(record);
    }

    public int deleteByCondition(SitesTypeTop record) {
        return sitesTypeTopMapper.deleteByCondition(record);
    }

}
